Skip to content

Steering Committee: keyboard-accessible cards and profile dialogs, and retire stale static games JSON - #1292

Merged
LukasWallrich merged 3 commits into
rebrand-doorsfrom
doors/sc-a11y-and-stale-games
Nov 24, 2026
Merged

LukasWallrich merged 3 commits into
rebrand-doorsfrom
doors/sc-a11y-and-stale-games

Conversation

@LukasWallrich

@LukasWallrich LukasWallrich commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Visitors using a keyboard or screen reader on /about/steering-committee/ could not reliably focus member cards or hear a label for modal close buttons, and /data/open_research_games.json still served an unlinked, stale 39-game JSON export from November 2025.

Fixes #1157
Fixes #1151

What changes

  • Steering Committee accessibility (Steering committee page: cards and modal close buttons are not keyboard/screen-reader accessible #1157):

    • Updated scripts/generate_sc_profiles.py so member cards render as valid HTML5 <button type="button" class="sc-card" ...> elements (phrasing content only, decorative alt="" on portraits, aria-haspopup="dialog", aria-controls), modals carry role="dialog", aria-modal="true", and aria-labelledby, .sc-close-btn has type="button" and aria-label="Close profile" with aria-hidden="true" on its SVG, and social icon links carry accessible labels.
    • Updated assets/js/doors/steering.js and static/css/steering-committee.css so both the currently committed generated page (<div> cards) and future regenerated <button> output immediately provide keyboard focusability (tabindex="0", role="button", Enter/Space activation for legacy <div> cards), unclipped :focus-visible outlines, aria-label="Close profile", Escape-to-close, Tab focus trapping, immediate dialog visibility on open (replacing transition: all on modal descendants that delayed inherited visibility and blocked focus), preserved var(--display) typography on .sc-card-name, and focus restoration to the triggering card on close.
    • Left generated content/about/steering-committee/index.md untouched (guarded by check_source_rules.py), and kept CSS changes in static/css/steering-committee.css so this PR does not conflict with PR Teams: group the team cards by FORRT's four areas #1269.
    • Added unit tests in scripts/tests/test_generate_sc_profiles.py.
  • Retire stale /data/open_research_games.json (Stale games data published at /data/open_research_games.json #1151):

    • Removed static/data/open_research_games.json rather than syncing it from scripts/build_games_portal.py: nothing on forrt.org reads /data/open_research_games.json (/open-research-games-portal/ builds directly from data/open_research_games.json, and /apps/open_research_games_portal.html redirects there), and the old static file used a broken legacy dict-keyed schema incompatible with the current {"source", "games"} output.
    • Added data/open_research_games.json to scripts/rebrand/allowed_changes.txt, added REMOVED_OUTPUTS support in scripts/rebrand/check_source_rules.py, excluded the retired file from data-processing.yml uploads and scripts/data_artifact.py, cleaned it from build-resources on the next data-processing.yml run, and guarded deploy.yaml, scripts/rebrand/apply_artifacts.sh, and scripts/rebrand/rehearse_launch.py so pre-merge data-artifact archives cannot resurrect it.

Screenshots (/about/steering-committee/)

Keyboard focus ring on the first Steering Committee card and the opened member profile modal (with focus on Close profile) at 1440 px and 390 px:

1440 px — Keyboard focus on card 1440 px — Opened profile modal (Close profile focused)
sc-focus-desktop-1440 sc-modal-desktop-1440
390 px — Keyboard focus on card 390 px — Opened profile modal (Close profile focused)
sc-focus-mobile-390 sc-modal-mobile-390

Decisions to review

  • Retiring /data/open_research_games.json vs. mirroring data/open_research_games.json: retiring it means https://forrt.org/data/open_research_games.json will return 404 after launch rather than serving stale or schema-changed data; data/open_research_games.json remains the single generated source of truth.

Checks

  • Unit tests: test_generate_sc_profiles.py (8), test_rebrand_checks.py (63), test_data_artifact.py (12), test_build_games_portal.py (18), test_parse_disciplines_gdoc.py (11) — all PASS
  • python3 scripts/rebrand/check_source_rules.py --base origin/rebrand-doors and --base origin/main — PASS (0 findings)
  • hugo --gc --minify + python3 scripts/check_seo_html.py — all 28 checks PASS; /data/open_research_games.json absent from build
  • python3 scripts/rebrand/compare_builds.py — PASS (OK: the URL list, structured data and SEO tags match)
  • python3 scripts/rebrand/check_design.py --base / --jobs 4 — PASS (0 failures)
  • python3 scripts/rebrand/check_axe.py --base / + Playwright closed/open modal axe-core checks at 390 px and 1440 px — 0 WCAG A/AA violations
  • Playwright keyboard verification (with CSS transitions enabled): Tab focus ring, Enter/Space activation, immediate focus onto Close profile button, Escape & button close restoring focus to triggering card, and Newsreader display font preserved on regenerated <button><span class="sc-card-name"> markup

Created with Gemini 4 Neon in T3 Code (Antigravity); pre-PR review by Claude Opus 5.5.


Summary by cubic

Makes the Steering Committee member cards and profile dialogs on /about/steering-committee/ keyboard- and screen-reader accessible (#1157), and retires the stale static games JSON that nothing on the site reads (#1151).

Accessibility

  • Member cards now render as <button> elements with dialog semantics, and the already-generated <div> cards gain keyboard focus and Enter/Space activation.
  • Profile dialogs get proper labels, focus trapping, Escape-to-close, and focus restoration to the triggering card, with generated markup and steering.js coordinating so focus handling is not duplicated.
  • Modal transitions changed so dialogs are immediately visible and focusable on open.

Retiring stale games JSON

  • Removes static/data/open_research_games.json; /data/open_research_games.json will 404 after launch instead of serving an unlinked, schema-incompatible export.
  • Deploy and rebrand tooling is guarded so older data artifacts cannot resurrect the retired file.

Written for commit 0aff579. Summary will update on new commits.

View guided diff Turn on auto-fix

@LukasWallrich
LukasWallrich requested a review from a team as a code owner November 24, 2026 01:49
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Image files/references in png/jpg format detected

Note that we generally rely on webp format for this webpage, so please consider converting these images to WebP format and updating references accordingly.

References to image files:

  • scripts/rebrand/allowed_changes.txt: post/*/featured_hu.jpg
  • scripts/rebrand/allowed_changes.txt: post/*/featured_hu.png
  • scripts/rebrand/allowed_changes.txt: ai-metascience/featured_hu.png

@github-actions

Copy link
Copy Markdown
Contributor

✅ Spell Check Passed

No spelling issues found when checking 11 changed file(s)! 🎉

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 14 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread scripts/tests/test_data_artifact.py Resolved
Comment thread .github/workflows/data-processing.yml Resolved
Comment thread scripts/tests/test_rebrand_checks.py Resolved
Comment thread scripts/rebrand/check_source_rules.py Resolved
Comment thread scripts/rebrand/check_source_rules.py Resolved
Comment thread static/css/steering-committee.css Resolved
@LukasWallrich
LukasWallrich merged commit d562769 into rebrand-doors Nov 24, 2026
9 of 10 checks passed
@LukasWallrich
LukasWallrich deleted the doors/sc-a11y-and-stale-games branch November 24, 2026 10:08
LukasWallrich added a commit that referenced this pull request Nov 24, 2026
Drops this PR's larger Steering Committee section headers; that page was reworked in #1292.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant